package com.appkubes.mall.core.pojo;

import com.appkubes.mall.core.po.FintechUserCompanyCopy1;
import com.appkubes.mall.core.po.FintechUserCompanyCopy1Example;
import java.util.List;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.DeleteProvider;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.InsertProvider;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.SelectProvider;
import org.apache.ibatis.annotations.Update;
import org.apache.ibatis.annotations.UpdateProvider;
import org.apache.ibatis.session.RowBounds;
import org.apache.ibatis.type.JdbcType;

public interface FintechUserCompanyCopy1Mapper {
    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_user_company_copy1
     *
     * @mbg.generated
     */
    @SelectProvider(type=FintechUserCompanyCopy1SqlProvider.class, method="countByExample")
    long countByExample(FintechUserCompanyCopy1Example example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_user_company_copy1
     *
     * @mbg.generated
     */
    @DeleteProvider(type=FintechUserCompanyCopy1SqlProvider.class, method="deleteByExample")
    int deleteByExample(FintechUserCompanyCopy1Example example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_user_company_copy1
     *
     * @mbg.generated
     */
    @Delete({
        "delete from fintech_user_company_copy1",
        "where user_key = #{userKey,jdbcType=VARCHAR}"
    })
    int deleteByPrimaryKey(String userKey);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_user_company_copy1
     *
     * @mbg.generated
     */
    @Insert({
        "insert into fintech_user_company_copy1 (user_key, legal_person_name, ",
        "legal_person_tel, company_address, ",
        "company_tel, main_business, ",
        "license_photo, create_time, ",
        "update_time, version)",
        "values (#{userKey,jdbcType=VARCHAR}, #{legalPersonName,jdbcType=VARCHAR}, ",
        "#{legalPersonTel,jdbcType=VARCHAR}, #{companyAddress,jdbcType=VARCHAR}, ",
        "#{companyTel,jdbcType=VARCHAR}, #{mainBusiness,jdbcType=VARCHAR}, ",
        "#{licensePhoto,jdbcType=VARCHAR}, #{createTime,jdbcType=TIMESTAMP}, ",
        "#{updateTime,jdbcType=TIMESTAMP}, #{version,jdbcType=VARCHAR})"
    })
    int insert(FintechUserCompanyCopy1 record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_user_company_copy1
     *
     * @mbg.generated
     */
    @InsertProvider(type=FintechUserCompanyCopy1SqlProvider.class, method="insertSelective")
    int insertSelective(FintechUserCompanyCopy1 record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_user_company_copy1
     *
     * @mbg.generated
     */
    @SelectProvider(type=FintechUserCompanyCopy1SqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="user_key", property="userKey", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="legal_person_name", property="legalPersonName", jdbcType=JdbcType.VARCHAR),
        @Result(column="legal_person_tel", property="legalPersonTel", jdbcType=JdbcType.VARCHAR),
        @Result(column="company_address", property="companyAddress", jdbcType=JdbcType.VARCHAR),
        @Result(column="company_tel", property="companyTel", jdbcType=JdbcType.VARCHAR),
        @Result(column="main_business", property="mainBusiness", jdbcType=JdbcType.VARCHAR),
        @Result(column="license_photo", property="licensePhoto", jdbcType=JdbcType.VARCHAR),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="version", property="version", jdbcType=JdbcType.VARCHAR)
    })
    List<FintechUserCompanyCopy1> selectByExampleWithRowbounds(FintechUserCompanyCopy1Example example, RowBounds rowBounds);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_user_company_copy1
     *
     * @mbg.generated
     */
    @SelectProvider(type=FintechUserCompanyCopy1SqlProvider.class, method="selectByExample")
    @Results({
        @Result(column="user_key", property="userKey", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="legal_person_name", property="legalPersonName", jdbcType=JdbcType.VARCHAR),
        @Result(column="legal_person_tel", property="legalPersonTel", jdbcType=JdbcType.VARCHAR),
        @Result(column="company_address", property="companyAddress", jdbcType=JdbcType.VARCHAR),
        @Result(column="company_tel", property="companyTel", jdbcType=JdbcType.VARCHAR),
        @Result(column="main_business", property="mainBusiness", jdbcType=JdbcType.VARCHAR),
        @Result(column="license_photo", property="licensePhoto", jdbcType=JdbcType.VARCHAR),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="version", property="version", jdbcType=JdbcType.VARCHAR)
    })
    List<FintechUserCompanyCopy1> selectByExample(FintechUserCompanyCopy1Example example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_user_company_copy1
     *
     * @mbg.generated
     */
    @Select({
        "select",
        "user_key, legal_person_name, legal_person_tel, company_address, company_tel, ",
        "main_business, license_photo, create_time, update_time, version",
        "from fintech_user_company_copy1",
        "where user_key = #{userKey,jdbcType=VARCHAR}"
    })
    @Results({
        @Result(column="user_key", property="userKey", jdbcType=JdbcType.VARCHAR, id=true),
        @Result(column="legal_person_name", property="legalPersonName", jdbcType=JdbcType.VARCHAR),
        @Result(column="legal_person_tel", property="legalPersonTel", jdbcType=JdbcType.VARCHAR),
        @Result(column="company_address", property="companyAddress", jdbcType=JdbcType.VARCHAR),
        @Result(column="company_tel", property="companyTel", jdbcType=JdbcType.VARCHAR),
        @Result(column="main_business", property="mainBusiness", jdbcType=JdbcType.VARCHAR),
        @Result(column="license_photo", property="licensePhoto", jdbcType=JdbcType.VARCHAR),
        @Result(column="create_time", property="createTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="update_time", property="updateTime", jdbcType=JdbcType.TIMESTAMP),
        @Result(column="version", property="version", jdbcType=JdbcType.VARCHAR)
    })
    FintechUserCompanyCopy1 selectByPrimaryKey(String userKey);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_user_company_copy1
     *
     * @mbg.generated
     */
    @UpdateProvider(type=FintechUserCompanyCopy1SqlProvider.class, method="updateByExampleSelective")
    int updateByExampleSelective(@Param("record") FintechUserCompanyCopy1 record, @Param("example") FintechUserCompanyCopy1Example example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_user_company_copy1
     *
     * @mbg.generated
     */
    @UpdateProvider(type=FintechUserCompanyCopy1SqlProvider.class, method="updateByExample")
    int updateByExample(@Param("record") FintechUserCompanyCopy1 record, @Param("example") FintechUserCompanyCopy1Example example);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_user_company_copy1
     *
     * @mbg.generated
     */
    @UpdateProvider(type=FintechUserCompanyCopy1SqlProvider.class, method="updateByPrimaryKeySelective")
    int updateByPrimaryKeySelective(FintechUserCompanyCopy1 record);

    /**
     * This method was generated by MyBatis Generator.
     * This method corresponds to the database table fintech_user_company_copy1
     *
     * @mbg.generated
     */
    @Update({
        "update fintech_user_company_copy1",
        "set legal_person_name = #{legalPersonName,jdbcType=VARCHAR},",
          "legal_person_tel = #{legalPersonTel,jdbcType=VARCHAR},",
          "company_address = #{companyAddress,jdbcType=VARCHAR},",
          "company_tel = #{companyTel,jdbcType=VARCHAR},",
          "main_business = #{mainBusiness,jdbcType=VARCHAR},",
          "license_photo = #{licensePhoto,jdbcType=VARCHAR},",
          "create_time = #{createTime,jdbcType=TIMESTAMP},",
          "update_time = #{updateTime,jdbcType=TIMESTAMP},",
          "version = #{version,jdbcType=VARCHAR}",
        "where user_key = #{userKey,jdbcType=VARCHAR}"
    })
    int updateByPrimaryKey(FintechUserCompanyCopy1 record);
}